package com.hyh.baowenlioaworking.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.sun.istack.internal.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;

import java.io.Serializable;

/**
 * @BelongsPackage: com.hyh.baowenlioaworking.model
 * @ClassName Admin
 * @Author: hyhWTX
 * @CreateTime: 2023-07-21  11:58
 * @Description: 管理员实体表
 * @Version: 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("admin")
public class Admin implements Serializable {
    @NotNull
    private  Integer id;
    private String name;
    private String phone;
    private  String username;
    private String password;
    @Value("${default.userFace}")
    private String userFace; // 头像字段

}
